package com.bojiu.lawsearch.lawsearch.service;

import com.bojiu.lawsearch.lawsearch.model.Page;
import com.bojiu.lawsearch.lawsearch.model.Profession;
import com.bojiu.lawsearch.lawsearch.model.Unit;
import com.bojiu.lawsearch.lawsearch.model.UnitDetail;

import java.util.List;

/**
 * @author: afdiao
 * @Date：2020/3/8 22:17
 * @Description:
 */
public interface ProfessionService {

    Page<Profession> getList(int pageNum, int pageSize);

    void updateProfession(int id, String name);

    void insert(Profession profession);

    void delete(int id);

    List<Profession> getAllProfession();

    List<Unit> getAllUnit();

    List<UnitDetail> getAllUnitdetailById(int unitId);
}
